using RugbyClubWpf.Helpers;
using System.Windows;
using System.Windows.Input;

namespace RugbyClubWpf.Views
{
    public partial class UpdateMatchDialog : Window
    {
        public UpdateMatchDialog()
        {
            InitializeComponent();
            DataContext = this;
            UpdateCommand = new RelayCommand(UpdateMatch);
        }

        public ICommand UpdateCommand { get; }

        private void UpdateMatch(object parameter)
        {
            DialogResult = true;
            Close();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
            Close();
        }
    }
}
